import LAYOUT from "@/views/layout/index.vue";

export const asyncRouter = [
  {
    path: "/demo",
    name: "demo",
    redirect: "noDirect",
    component: LAYOUT,
    children: [
      {
        path: "table",
        name: "table",
        component: () => import("../views/table/index.vue"),
        meta: {
          title: "表格",
        },
      },
      {
        path: "form",
        name: "form",
        component: () => import("../views/form/index.vue"),
        meta: {
          title: "表单",
        },
      },
      {
        path: "component",
        name: "component",
        component: () => import("../views/componentsDemo/index.vue"),
        meta: {
          title: "组件",
        },
      },
    ],
  },
  {
    path: "/test",
    name: "test",
    redirect: "noDirect",
    component: LAYOUT,
    children: [
      {
        path: "/test/menu1",
        name: "menu1",
        component: () => import("../views/test/menuTest.vue"),
        meta: {
          title: "菜单1",
        },
      }
    ],
  },
];
